//
//  ConAboutUsViewController.m
//  Shengzhuli
//
//  Created by subook on 17/3/24.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ConAboutUsViewController.h"
#import "SZLAccountHelper.h"
#import "GFXNetworkHandle.h"

@interface ConAboutUsViewController ()

@end

@implementation ConAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"关于我们";
    [self loadData];
    [self createBaseView];
}
- (void)loadData {
    
    NSString *urlString = [PublicServer stringByAppendingString:@"/auth/app/about"];
    NSMutableDictionary *param = [NSMutableDictionary dictionary];
    param[@"token"] = [SZLAccountHelper shareInstance].token;
    NSLog(@"token = %@",param[@"token"]);
    [[GFXNetworkHandle shareHandle]post:urlString params:param success:^(id json) {
        
        
    } failure:^(NSError *error) {
        
    }];
}
- (void) createBaseView {
    
    UIImageView *logoImageView = [[UIImageView alloc] initWithFrame:(CGRectMake(ScreenW/2-60, (ScreenH-64)/4, 120, 120))];
    logoImageView.layer.cornerRadius = 60;
    logoImageView.image = [UIImage imageNamed:@"logo2"];
    logoImageView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:logoImageView];
    
    UILabel *label = [[UILabel alloc] initWithFrame:(CGRectMake(0, (ScreenH-64)/2+20, ScreenW, 20))];
    label.font = [UIFont systemFontOfSize:14];
    label.textColor = [UIColor grayColor];
    label.textAlignment = NSTextAlignmentCenter;
    label.text = @"每一次被打开，都承载着信任与追求";
    [self.view addSubview:label];
    
    UILabel *label1 = [[UILabel alloc] initWithFrame:(CGRectMake(0, (ScreenH-64)/2+40, ScreenW, 30))];
    //label1.font = [UIFont systemFontOfSize:18];
    label1.textAlignment = NSTextAlignmentCenter;
    label1.textColor = [UIColor grayColor];
    label1.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.f];
    label1.text = @"来一起，玩转地球";
    [self.view addSubview:label1];
    
    UILabel *label2 = [[UILabel alloc] initWithFrame:(CGRectMake(ScreenW/2-80, (ScreenH-64)-80, 160, 40))];
    
    label2.font = [UIFont systemFontOfSize:12];
    NSString *verson = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
    label2.text = [NSString stringWithFormat:@"当前版本%@  www.wanzhuandiqiu.com",verson];
    label2.numberOfLines = 0;
    label2.textAlignment = NSTextAlignmentCenter;
    label2.textColor = [UIColor lightGrayColor];
    [self.view addSubview:label2];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
